package 实验室;

import cn.hutool.core.bean.copier.BeanCopier;
import lombok.Data;
import org.junit.Test;

/**
 * @Author: SunAo
 * @Date: 2021/6/1 下午4:48
 */
public class BeanCopy {

    @Test
    public void ceshi(){

        PersonDTO dto = new PersonDTO();
        dto.setName("Haha");
        dto.setPassword("password");


    }

    @Data
    static class PersonDTO{
        private String name;
        private String password;
    }
    @Data
    static class PersonVO{
        private String name;
        private String password;
    }
}
